package org.tiddlywiki;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class TiddlyWiki {
	// Paths
	public String filePath;
	public String url;
	// Methods
	public static Tiddler[] getAllTiddlers(Document tw) throws ParseException {
		Elements divs=tw.select("div[title]");
		Tiddler[] tiddlers=new Tiddler[divs.size()];
		int k=0;
		for(Element div : divs) {
			tiddlers[k].getFromDiv(div);
		}
		return tiddlers;
	}
	
	
}
